#ifndef OBJ_LOADER_H
#define OBJ_LOADER_H

#include "Config/Export.h"
#include "Core/ILoader.h"
#include "Core/Model.h"

namespace epix {

class SHARED ObjLoader : public ILoader<Model>
{
    public:

        ObjLoader();
        ~ObjLoader();

        virtual Model *loadFromFile(const char *filename);

    private:

        void count(const char *filename);
        void fill(const char *filename);

        unsigned int _nbI, _nbV, _nbVt, _nbVn;
        unsigned *_indiceObj, *_finalIndex;
        float *_posObj, *_texObj, *_norObj;
        float *_pos, *_tex, *_nor;

};

}

#endif
